package com.briup.client;

import com.briup.interfaces.impl.ConfigurationImpl;
import com.briup.entity.Environment;
import com.briup.interfaces.Client;
import com.briup.interfaces.Gather;

import java.io.IOException;
import java.util.Collection;

/**
 * 客户端启动类
 */
public class ClientMain {
    public static void main(String[] args) throws IOException {
        // 采集模块
        Gather gather = new ConfigurationImpl().getGather();
        // 客户端对象
        Client client = new ConfigurationImpl().getClient();
        // 1.采集
        Collection<Environment> coll = gather.gather();
        // 2.发送
        client.send(coll);

    }
}
